package com.ruoyi.bom.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 物料单位换算对象 tql_stap_unit_trans
 * 
 * @author ruoyi
 * @date 2023-12-31
 */
@Data
public class TqlStapUnitTrans extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String stapCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String stapName;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 基本单位 */
    @Excel(name = "基本单位")
    private String baseUnit;

    /** 分子 */
    @Excel(name = "分子")
    private String factor;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String auditStatus;

    /** 租户号 */
    @Excel(name = "租户号")
    private String tenantId;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private String revision;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 冗余字段 */
    @Excel(name = "冗余字段")
    private String remark1;

    /** 冗余字段 */
    @Excel(name = "冗余字段")
    private String remark2;

    /** 冗余字段 */
    @Excel(name = "冗余字段")
    private String remark3;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setStapCode(String stapCode) 
    {
        this.stapCode = stapCode;
    }

    public String getStapCode() 
    {
        return stapCode;
    }
    public void setStapName(String stapName) 
    {
        this.stapName = stapName;
    }

    public String getStapName() 
    {
        return stapName;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setBaseUnit(String baseUnit) 
    {
        this.baseUnit = baseUnit;
    }

    public String getBaseUnit() 
    {
        return baseUnit;
    }
    public void setFactor(String factor) 
    {
        this.factor = factor;
    }

    public String getFactor() 
    {
        return factor;
    }
    public void setAuditStatus(String auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public String getAuditStatus() 
    {
        return auditStatus;
    }
    public void setTenantId(String tenantId) 
    {
        this.tenantId = tenantId;
    }

    public String getTenantId() 
    {
        return tenantId;
    }
    public void setRevision(String revision) 
    {
        this.revision = revision;
    }

    public String getRevision() 
    {
        return revision;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setRemark1(String remark1) 
    {
        this.remark1 = remark1;
    }

    public String getRemark1() 
    {
        return remark1;
    }
    public void setRemark2(String remark2) 
    {
        this.remark2 = remark2;
    }

    public String getRemark2() 
    {
        return remark2;
    }
    public void setRemark3(String remark3) 
    {
        this.remark3 = remark3;
    }

    public String getRemark3() 
    {
        return remark3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stapCode", getStapCode())
            .append("stapName", getStapName())
            .append("unit", getUnit())
            .append("baseUnit", getBaseUnit())
            .append("factor", getFactor())
            .append("auditStatus", getAuditStatus())
            .append("tenantId", getTenantId())
            .append("revision", getRevision())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("remark1", getRemark1())
            .append("remark2", getRemark2())
            .append("remark3", getRemark3())
            .toString();
    }
}
